#include <dolphin/socket.h>
int SOBind ( int s, const void* sockAddr );
SOBind() assigns a local socket address (name) to a
socket that has no local socket
address assigned. Sockets created with the SOSocket()
are initially not bound to any address.
s |
The socket descriptor to be bound. |
sockAddr |
A pointer to a socket address structure containing the address to be bound to the socket. |
| zero | Succeeded. |
SO_EADDRINUSE |
Address is already in use. |
SO_EAFNOSUPPORT |
Non-supported address family. |
SO_EBADF |
Bad socket descriptor. |
SO_EINVAL |
Invalid operation. (The socket is already bound to an address, etc.) |
SO_ENETRESET |
Socket library is not initialized. |
Note: Additional errors may be generated and returned in future library releases. All the negative return values must be treated as generic errors.